package com.neusoft.bizcore.web.jpa.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@MappedSuperclass
public abstract class AbstractAuditModel extends AbstractModel {

    /**
     *
     */
    private static final long serialVersionUID = 1L;

    /**
     * 创建时间
     */
    @Column(nullable = false)
    private Date createTime = new Date();

    /**
     * 修改时间
     */
    @Column(nullable = false)
    private Date updateTime = new Date();
}
